737cd16a38a7a2b2aa70e420a0505bdb487d1051,interop-testing/src/test/java/io/grpc/testing/integration/AutoWindowSizingOnTest.java,AutoWindowSizingOnTest,createChannel,#,63
Before Change
@Override
protected ManagedChannel createChannel() {
return NettyChannelBuilder.forAddress("localhost", getPort())
.negotiationType(NegotiationType.PLAINTEXT)
.maxInboundMessageSize(AbstractInteropTest.MAX_MESSAGE_SIZE)
.statsContextFactory(getClientStatsFactory())
.build();
}
}
After Change
NettyChannelBuilder builder = NettyChannelBuilder.forAddress("localhost", getPort())
.negotiationType(NegotiationType.PLAINTEXT)
.maxInboundMessageSize(AbstractInteropTest.MAX_MESSAGE_SIZE);
io.grpc.internal.TestUtils.setStatsContextFactory(builder, getClientStatsFactory());
return builder.build();
}
}